package com.zrwl.poscloud.xo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zrwl.poscloud.commons.vo.BaseVO;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 设备管理 VO类
 *
 * @author 刘思童 AutoGenerate
 * @date 2021-04-01
 */
@Data
public class EquipmentVO extends BaseVO<EquipmentVO> {
    private static final long serialVersionUID = 1L;
    private String name;
    private String code;
    private int type;
    private String address;
    private int typeData;
//    private EquipmentBatchVO equipmentBatchVO;
//    private EquipmentChangeVO equipmentChangeVO;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date beginTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
    private String houseUid;
    private String ownerUid;
    private int ownerType;
    private String windowUid;
    private String windowName;
    private String houseName;
    private String houseCode;
    private String newName;
    private int pact;
    private int isTheIpDefault;
    private String ip;
    private String subnetMask;
    private String gateway;
    private String serverUid;
    private String equipmentUid;
    private String clientUid;
    private int csType;
    private String csUid;
    private String timeRUid;
    private String timeUid;
    private String configUid;
    private int fromType;
    private String fromUid;
    private int billType;
    private List<EquipmentVO> gatewayChildren;
    private List<EquipmentVO> equipmentChildren;
    private List<EquipmentVO> children;
    private int treeLevel;
    private int basePublishStatus;
    private int timePublishStatus;
    //部署配置
    private String flowCode;//验证码
    private int backupPolicy;//云备份策略
    private int deployStatus;//部署状态

    private String clientName;
    private Boolean isAllocate;
    private String companyName;
    private int windowPosition;
    private String equipmentType;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastRequestTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date firstRequestTime;
    private boolean onlineStatus;
    private boolean gateStatus;
    private String gateCode;
    private String nickName;
    private String gateName;
    private Integer syncStatus;//数据同步状态
    private String jsonStr;
    private String summary;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    private String cardPwd;
    private Integer startDisk;
    private String companyUid;
    private String firmwareVersion;
    private String hardwareVersion;
    private String merchantName;
    private String merchantUid;
    private List<String> equipmentUidList;
    private Integer port;
    private String qrCode;
//    private List<QrCodeUseVO> qrCodeUseList;//似乎无用参数可删除
    private Integer presentPort;
}
